<%@ LANGUAGE="VBSCRIPT" %>
<%'  ------------------------------------------------------------
  '  viewbanner.asp
  '  ------------------------------------------------------------
  '  VCS INFO:
  '  
  '  $Revision:   1.13  $
  '  $Date:   05 Dec 2000 17:22:44  $
  '  $Author:   syu  $
  '  $Workfile:   viewbanner.asp  $
  '  ------------------------------------------------------------
  '  All Rights Reserved.  Copyright (c) 1988-1998 FileNET Corp.
  '  ------------------------------------------------------------
  '%>
<%
'Panagon IDM Web application uses the Session variable LibraryLogonID to keep track of
'whether the user has logged on.
'Please see logoncall.asp to see how the Session variable LibraryLogonID is set.

IsLoggedOn = (Len(Session("LibraryLogonID")) > 0)
%>

<HTML>
<HEAD>
  <META NAME="GENERATOR" CONTENT="Adobe PageMill 2.0 Mac">
  <TITLE>Panagon IDM Viewer Banner</TITLE>
</HEAD>
<BODY BGCOLOR="#ffffff" BACKGROUND="images/grayban.jpg">

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<% if Application("ViewUsingNativeApplication")=false then %>
<IMG SRC="images/vanimate.gif" WIDTH="215" HEIGHT="80" ALIGN="BOTTOM" NATURALSIZEFLAG="3">
<% else %>
<IMG SRC="images/vanimate3.gif" WIDTH="215" HEIGHT="80" ALIGN="BOTTOM" NATURALSIZEFLAG="3">
<% end if %>
</TD>
<TD WIDTH="624%" NOWRAP>
<P ALIGN=RIGHT>
<A HREF="browser.asp" TARGET="_top"><IMG SRC="images/browicon.gif" WIDTH="82" HEIGHT="71" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0"></A>
<A HREF="search.asp" TARGET="_top"><IMG SRC="images/search.gif" WIDTH="79" HEIGHT="71" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0"></A>
<%
'If the user is logged on to a Document Services library, then add the
'links to Add Document and Checked Out List pages.
'Also, the help link is different for Images Services vs Document Services.

if IsLoggedOn then 
	LibraryLogonID = Session("LibraryLogonID")
	Set LibraryObj = Server.CreateObject("IDMObjects.Library")
	LibraryObj.LogonId = LibraryLogonID
	if LibraryObj.SystemType = Application("idmSysTypeIS") then %>
<A HREF="help/idmwebhelp.asp?HelpTopic=Viewer" TARGET="_top"><IMG SRC="images/help.gif" WIDTH="59" HEIGHT="71" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0"></A>
<% else %>
<A HREF="adddoc.asp" TARGET="_top"><IMG SRC="images/adddoc.gif" WIDTH="63" HEIGHT="71" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0"></A>
<A HREF="checkedout.asp" TARGET="_top"><IMG SRC="images/checkot.gif" WIDTH="96" HEIGHT="71" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0"></A>
<A HREF="help/idmwebhelp.asp?HelpTopic=ViewerDS" TARGET="_top"><IMG SRC="images/help.gif" WIDTH="59" HEIGHT="71" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0"></A>
<%	end if 
end if %>
<A HREF="home.asp" TARGET="_top"><IMG SRC="images/homelink.gif" WIDTH="68" HEIGHT="71" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0"></A>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
